﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using TheEntities;

namespace TheService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IForumer
    {

        [OperationContract]
        string GetData(int value);



        [OperationContract]
        Question OpenQuestion(int id);

        [OperationContract]
        void SaveQuestion(Question question, out int id, out byte[] version);

        // TODO: Add your service operations here

        [OperationContract]
        void DeleteQuestion(int questionId, byte[] version);
    }



}
